Use CRPEJob::SetGroupCondition to set the condition of the grouping for the specified group section. This method can only replace the group condition for an existing group. It cannot create a new group. Use this method whenever you want to change the grouping at print time (for example, to print a report grouped in several different ways).
BOOL SetGroupCondition (
short sectionCode,
const _TCHAR *conditionField,
short condition,
short sortDirection );
Specifies the code for the group section for which you want to set the group condition. Use one of the following constants. | ||
Constant | Description | |
Specifies a pointer to the field that triggers a summary whenever its value changes. Use the name of the field as indicated in the report file. | ||
Specifies the condition that needs to be met for Date and Boolean fields. For all field types (except Date and Boolean), use PEP_GC_ANYCHANGE as the condition parameter. Use one of the following constants for Date and Boolean field types. | ||
Constant (Date fields only) | Description | |
Triggers a grouping every time the date changes from one week to the next (a week runs from Sunday through Saturday). | ||
Triggers a grouping every time the date changes from one two | ||
Triggers a grouping every time the date changes from one half | ||
Triggers a grouping every time the date changes from one month to the next. | ||
Triggers a grouping every time the date changes from one calendar quarter to the next. | ||
Triggers a grouping every time the date changes from one half | ||
Triggers a grouping every time the date changes from one year to the next. | ||
Constant (Boolean fields only) | Description | |
Triggers a grouping every time the sort | ||
Triggers a grouping every time the sort | ||
Triggers a grouping every time the sort | ||
Triggers a grouping every time the sort | ||
Triggers a grouping every time the next value in the sort | ||
Triggers a grouping every time the next value in the sort | ||
Specifies one of the PEP_SF_XXX Sort Order Constants. |
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |